<?php if (!isset($_SESSION)) {
    session_start();
}

include ("modelo/clase_principal.php");

$objeto = new principal;

$objeto->conectar_mysql();
//$objeto->conectar_usuarios($_SESSION['usuario_sesion'], $_SESSION['clave_sesion']);

if (isset($_POST) and !empty($_POST)){
	
extract($_POST);

//$tabla = "producto";
//$campos = "*";
//$campo_buscar = "";
//$valor_buscar = "";
//$ordenar= "";
//$limite = "0 , 2";

/*
$consulta_sql = "select factura from maestro_factura group by factura";
$sql_numero = "select factura from maestro_factura group by factura";
*/

$objeto->genera_registros_json($consulta_sql, $sql_numero);
}
?>
